/*
 * $Id: CfgTaskCategoryInfo.java,v 1.6 2010/03/03 20:32:51 navdeep_mahajan Exp $
 *
 * Copyright (C) 2006 General Electric Company. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of the General
 * Electric Company (GE). You shall not disclose this software and shall use it
 * only in accordance with the terms of the license agreement you entered into
 * with GE.
 *
 * GE MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
 * NON-INFRINGEMENT. GE SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
 * AS A RESULT OF USING, MODIFYING, OR DISTRIBUTING THIS SOFTWARE OR ITS
 * DERIVATIVES.
 */

package com.ge.healthcare.autosc.common.database.pojo;

import com.ge.healthcare.autosc.common.ASCUtil;
import com.ge.healthcare.autosc.common.util.PropertyConstants;

/**
 * CfgTaskCategoryInfo entity. @author MyEclipse Persistence Tools
 */
public class CfgTaskCategoryInfo extends AbstractCfgTaskCategoryInfo implements
		java.io.Serializable {
	/**
	 * Eclipse generated
	 */
	private static final long serialVersionUID = 8369281973827305398L;

	public static final String TABLE_NAME = "com.ge.healthcare.autosc.common.database.pojo.CfgTaskCategoryInfo";

	public static final String COL_TASK_CATEGORY_ID = "taskCategoryId";

	public static final String COL_TASK_CATEGORY = "taskCategory";

	// Constructors

	/** default constructor */
	public CfgTaskCategoryInfo() {
	}

	/** minimal constructor */
	public CfgTaskCategoryInfo(String taskCategory, String queueName) {
		super(taskCategory, queueName);
	}

	public String toString() {
		StringBuffer str = new StringBuffer();
		str = str.append("{Task Category Id=").append(this.getTaskCategoryId())
				.append("},");
		str = str.append("{Task Category=").append(this.getTaskCategory())
				.append("},");
		str = str.append("{Queue Name=").append(this.getQueueName()).append(
				"},");
		return str.toString();
	}

	public boolean isUnRegulatedTaskCategory() {
		return ASCUtil.containsInProperty(
				PropertyConstants.UNREGULATED_TASK_CATEGORY_NAMES, ",", this
						.getTaskCategory());

	}

}
